package com.xh.facerecognition.sdk;


public class FaceRecognitionConfig {

    private String url;
    private boolean enableFullUrl;
    private boolean enableLive;

    public FaceRecognitionConfig(String url, boolean enableFullUrl, boolean enableLive) {
        this.url = url;
        this.enableFullUrl = enableFullUrl;
        this.enableLive = enableLive;
    }

    public String getUrl() {
        return url;
    }

    public boolean isEnableFullUrl() {
        return enableFullUrl;
    }

    public boolean isEnableLive() {
        return enableLive;
    }

    public static final class Builder {
        private String url;
        private boolean enableFullUrl;
        private boolean enableLive = true;

        public Builder() {
        }

        public FaceRecognitionConfig.Builder setUrl(String url) {
            this.url = url;
            return this;
        }

        public FaceRecognitionConfig.Builder setEnableFullUrl(boolean enableFullUrl) {
            this.enableFullUrl = enableFullUrl;
            return this;
        }

        public FaceRecognitionConfig.Builder setEnableLive(boolean enableLive) {
            this.enableLive = enableLive;
            return this;
        }

        public FaceRecognitionConfig build() {
            return new FaceRecognitionConfig(this.url, this.enableFullUrl, this.enableLive);
        }
    }
}
